.ant-pro-sider {
  .ant-layout-sider-children {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  &-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 100;
    height: 100%;
    box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);
  }

  &-menu {
    position: relative;
    z-index: 10;
    min-height: 100%;
    border-inline-end: none !important;
  }

  &-collapsed-button {
    border-top: 1px solid rgb(0 0 0 / 6%);
  }

  &-collapsed-button-inverted {
    border-top: 1px solid rgb(143 132 117 / 6%);
  }

  &-light {
    .ant-menu-light {
      border-right-color: transparent;
    }
  }

  &-logo {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);

    > a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 32px;
    }

    img {
      display: inline-block;
      vertical-align: middle;
      height: 32px;
    }

    h1 {
      display: inline-block;
      vertical-align: middle;
      overflow: hidden;
      width: calc(100% - 32px);
      height: 32px;
      margin: 0 0 0 12px;
      font-weight: 600;
      font-size: 18px;
      line-height: 32px;
      text-overflow: ellipsis;
      white-space: nowrap;
      animation: pro-layout-title-hide 0.3s;
    }
  }

  &-collapsed {
    padding: 16px 8px;
  }
}

[data-theme='dark'] .ant-pro-sider {
  &-collapsed-button {
    border-top: 1px solid rgb(143 132 117 / 6%);
  }

  &-fixed {
    box-shadow: rgb(13 13 13 / 65%) 0 2px 8px 0;
  }
}

@keyframes pro-layout-title-hide {
  0% {
    display: none;
    opacity: 0;
  }

  80% {
    display: none;
    opacity: 0;
  }

  to {
    display: unset;
    opacity: 1;
  }
}

.scrollbar {
  &::-webkit-scrollbar {
    width: 5px;
    height: 10px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgb(190 190 190 / 20%);
    box-shadow: inset 0 0 5px rgb(0 0 0 / 20%);
  }

  &::-webkit-scrollbar-track {
    border-radius: 0;
    background: rgb(0 0 0 / 10%);
    box-shadow: inset 0 0 5px rgb(227 227 227 / 20%);
  }
}
